// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import axios from "axios"//引入axios

import * as utils from './common/utils.js'
import * as https from './common/https.js'
import * as check from './common/check.js'

Vue.config.productionTip = false
Vue.prototype.$api = {msg};
Vue.prototype.$utils = utils;
Vue.prototype.$https = https;
Vue.prototype.$check = check;

App.mpType = 'app'

const app = new Vue({
	...App
})

const msg = (title, duration = 1500, mask = false, icon = 'none') => {
	//统一提示方便全局修改
	if (Boolean(title) === false) {
		return;
	}
	uni.showToast({
		title,
		duration,
		mask,
		icon
	});
}

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif